import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
    {
        path: '/',
        name: 'home',
        meta: {
            title: '首页',
            icon: 'Help'
        },
        component: () => import('../view/home/home.vue')
    },
    {
        path: '/index',
        name: 'index',
        meta: {
            title: '简单图表',
            icon: 'Monitor'
        },
        component: () => import('../view/index/index.vue')
    },
    {
        path: '/Histogram',
        name: 'Histogram',
        meta: {
            title: '柱状图',
            icon: 'Ship'
        },
        component: () => import('../view/Histogram/index.vue')
    }, {
        path: '/lineChart',
        name: 'lineChart',
        meta: {
            title: '折线图',
            icon: 'ChromeFilled'
        },
        component: () => import('../view/lineChart/index.vue')
    },
    {
        path: '/map',
        name: 'map',
        meta: {
            title: '地图',
            icon: 'MapLocation'
        },
        component: () => import('../view/map/map.vue')
    },
    {
        path: '/map2',
        name: 'map2',
        meta: {
            title: '地图2',
            icon: 'MapLocation'
        },
        component: () => import('../view/map2/map.vue')
    },
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export default router